package chapter3.No3_1_等待和通知机制.l通过管道进行线程间通信_字符流;

import java.io.PipedReader;

/**
 * Created by Administrator on 2016/11/20.
 */
public class ThreadRead extends Thread {
    ReadData readData;
    PipedReader pipedReader;

    public ThreadRead(ReadData readData, PipedReader pipedReader) {
        this.readData = readData;
        this.pipedReader = pipedReader;
    }

    @Override
    public void run() {
        readData.readMethod(pipedReader);
    }
}
